package com.eckey.lab.service.impl;

import com.eckey.lab.feign.OrderFeign;
import com.eckey.lab.feign.ProductFeign;
import com.eckey.lab.service.MiCro1Service;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class MiCro1ServiceImpl implements MiCro1Service {

    @Autowired
    private ProductFeign productFeign;

    @Autowired
    private OrderFeign orderFeign;

    @Override
    public String queryProductLists() {
        String lists = productFeign.lists();
        log.info("ProductFeign调用返回结果：{}", lists);
        return lists;
    }

    @Override
    public String queryOrderLists() {
        String lists = orderFeign.lists();
        log.info("orderFeign调用返回结果：{}", lists);
        return lists;
    }
}
